/* 基础样式 */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #141414;
}

/* 深色主题样式部分全部删除 */

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* 顶部导航栏 */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  border-bottom: 1px solid #f2f2f2;
  padding: 8px 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo svg {
  width: 14px;
  height: 14px;
}

.logo h2 {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.nav {
  display: flex;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: #141414;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #424242;
}

.nav-links a.active {
  text-decoration: none;
  font-weight: 600;
  color: #141414;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #424242;
  border-radius: 2px;
}

/* 主要内容区域 */
.content {
  padding: 10px 20px;
  display: flex;
  flex: 1;
  justify-content: center;
}

.content-container {
  display: flex;
  flex-direction: column;
  max-width: 800px;
  flex: 1;
}

/* 标题区域 */
.title-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
}

.title-content {
  display: flex;
  min-width: 250px;
  flex-direction: column;
  gap: 5px;
}

.main-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

.subtitle {
  color: #757575;
  font-size: 13px;
  margin: 0;
}

/* 表单样式 */
.form-group {
  display: flex;
  max-width: 480px;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 8px 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  min-width: 160px;
  flex: 1;
}

.form-label {
  color: #141414;
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 5px;
}

.form-input {
  display: flex;
  width: 100%;
  min-width: 0;
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  height: 36px;
  padding: 8px 10px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: #757575;
}

/* 弹出框中的表单样式调整 */
.modal .form-group {
  padding: 0 0 12px 0;
  max-width: 100%;
  margin: 0;
}

.modal .form-field {
  width: 100%;
}

.modal .form-input {
  width: 100%;
}

/* 控制行样式 - 日期筛选和添加按钮 */
.control-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 6px 10px;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.date-range-filter {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}

.date-range-filter .form-field {
  min-width: 120px;
  flex: 1;
}

.date-range-filter .form-label {
  font-size: 12px;
  padding-bottom: 3px;
}

.date-range-filter .form-input {
  height: 30px;
  padding: 5px 8px;
  font-size: 13px;
}

/* 筛选按钮样式 */
.filter-button {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: #f2f2f2;
  border: none;
  border-radius: 6px;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: #141414;
  cursor: pointer;
  transition: background-color 0.2s;
}

.filter-button:hover {
  background-color: #e0e0e0;
}

.filter-button svg {
  width: 12px;
  height: 12px;
}

/* 修改Add Task按钮样式 */
.control-row .button {
  min-width: 70px;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 15px;
}

/* 响应式调整 */
@media (max-width: 750px) {
  .control-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .control-row .button {
    margin-top: 5px;
    align-self: flex-end;
  }
}

@media (max-width: 500px) {
  .date-range-filter {
    flex-direction: column;
    align-items: stretch;
  }
  
  .date-range-filter .form-field {
    width: 100%;
  }
}

/* 修改原有按钮容器样式 */
.button-container {
  display: flex;
  padding: 8px 10px;
  justify-content: flex-end;
}

.button {
  display: flex;
  min-width: 80px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  height: 32px;
  padding: 0 12px;
  background-color: #f2f2f2;
  color: #141414;
  font-size: 13px;
  font-weight: bold;
  border: none;
}

/* 分区标题 */
.section-title {
  font-size: 18px;
  font-weight: bold;
  padding: 12px 10px 5px 10px;
  margin: 0;
}

/* 设置页面样式 */
.settings-section {
  border-bottom: 1px solid #f2f2f2;
  padding: 15px 10px;
  margin-bottom: 10px;
}

/* 设置页面的分区标题特殊处理 */
.settings-section .section-title {
  padding-left: 10px;
  margin-bottom: 15px;
}

/* 表格样式 */
.table-container {
  padding: 8px 10px;
}

.table-wrapper {
  display: flex;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background-color: white;
  position: relative;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  padding: 8px 10px;
  text-align: left;
  color: #141414;
  font-size: 13px;
  font-weight: 500;
}

td {
  height: 40px;
  padding: 5px 10px;
  color: #757575;
  font-size: 13px;
  border-top: 1px solid #e0e0e0;
}

/* 统计卡片样式 */
.stats-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
}

.stat-card {
  display: flex;
  min-width: 140px;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  border-radius: 8px;
  padding: 15px;
  background-color: #f2f2f2;
}

.stat-label {
  color: #141414;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.stat-value {
  color: #141414;
  font-size: 20px;
  font-weight: bold;
  margin: 0;
}

/* 弹出框样式 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0 15px;
  box-sizing: border-box;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 100%;
  max-width: 450px;
  box-sizing: border-box;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
  margin: 0 auto;
  position: relative;
  animation: modal-pop 0.25s ease-out;
}

@media (max-width: 480px) {
  .modal-content {
    max-width: 95%;
    padding: 15px;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.modal-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #757575;
  line-height: 1;
  padding: 0;
  margin: 0;
}

.modal-body {
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-button {
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.primary-button {
  background-color: #141414;
  color: white;
}

.secondary-button {
  background-color: #f2f2f2;
  color: #141414;
}

/* 右侧抽屉样式 */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 900;
  display: none;
}

.drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 480px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #f2f2f2;
}

.drawer-title {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #757575;
}

.drawer-content {
  padding-right: 16px;
  padding-bottom: 16px;
  padding-left: 16px;
}
/* 
.drawer-section {
  margin-bottom: 20px;
} */

.drawer-section-title {
  font-size: 13px;
  font-weight: 500;
  color: #757575;
  margin-bottom: 8px;
  margin-top: 0;
  display: inline-block;
  vertical-align: middle;
}

/* 添加其他section标题行式的样式对齐 */
.drawer-section {
  position: relative;
}

.drawer-section .icon-button {
  position: absolute;
  right: 0;
  top: 0;
}

.drawer-detail {
  font-size: 14px;
  margin: 0 0 12px 0;
}

.task-title {
  cursor: pointer;
  color: #141414;
  transition: color 0.2s;
}

.task-title:hover {
  color: #0066cc;
  text-decoration: underline;
}

.drawer-textarea {
  width: 95%;
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 10px;
}

.drawer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #757575;
  border-radius: 4px;
  width: 20px;
  height: 20px;
}

.icon-button:hover {
  background-color: #f2f2f2;
  color: #141414;
}

.notes-container {
  margin-bottom: 10px;
}

.small-button {
  font-size: 12px;
  padding: 4px 10px;
  height: 26px;
  min-width: 60px;
  margin-left: 8px;
}

.textarea-container {
  position: relative;
  width: 100%;
}

.format-tip {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  text-align: right;
  font-style: italic;
}

#notes-display {
  white-space: pre-line;
  word-break: break-word;
}

.drawer-actions-bar {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 15px;
  border-bottom: 1px solid #f2f2f2;
}

.action-group {
  display: flex;
  gap: 10px;
}

.action-group-right {
  margin-left: auto;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #141414;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 70px;
  justify-content: center;
}

.action-button:hover {
  background-color: #f2f2f2;
  border-color: #d0d0d0;
}

.action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.action-button svg {
  color: #141414;
}

/* 操作栏中的按钮样式 */
.drawer-actions-bar .action-button {
  min-width: auto;
  padding: 4px 6px;
  font-size: 10px;
  gap: 4px;
}

/* 只有图标的按钮 */
.action-button.icon-only {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
}

.action-button.icon-only svg {
  margin: 0 auto;
  width: 12px;
  height: 12px;
}

.action-button svg {
  width: 12px;
  height: 12px;
}

.action-button.complete {
  background-color: #e6f4ea;
  border-color: #c6e6d3;
  color: #137333;
}

.action-button.complete svg {
  color: #137333;
}

.action-button.complete:hover {
  background-color: #d2ebd3;
  border-color: #b6d8c2;
}

.danger-action {
  color: #d93025;
}

.danger-action svg {
  color: #d93025;
}

.danger-action:hover {
  background-color: #fdeeee;
  border-color: #f4c7c7;
}

/* 状态样式（使用背景色代替徽标） */
#drawer-task-status {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #333333;
  display: inline-block;
}

/* 移除原有状态徽标和状态包装器 */
.status-badge {
  display: none !important;
}

.status-with-badge {
  display: block;
}

/* 状态颜色 */
#drawer-task-status.completed {
  background-color: #e6f4ea;
  color: #137333;
}

#drawer-task-status.in-progress {
  background-color: #e8f0fe;
  color: #1a73e8;
}

#drawer-task-status.pending {
  background-color: #fef7e0;
  color: #b06000;
}

#drawer-task-status.new {
  background-color: #f1f3f4;
  color: #5f6368;
}

/* 修改计时器布局 */
.time-with-timer {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
}

.timer-display {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: #141414;
}

/* 计时器图标样式 */
#toggle-timer-btn.running {
  background-color: #fef7e0;
  border-color: #fce8b9;
  color: #b06000;
}

#toggle-timer-btn.running svg {
  color: #b06000;
}

#toggle-timer-btn:not(.running) {
  background-color: #e6f4ea;
  border-color: #d2ebd3;
  color: #137333;
}

#toggle-timer-btn:not(.running) svg {
  color: #137333;
}

#toggle-timer-btn:not(.running):hover:not(:disabled) {
  background-color: #d2ebd3;
  border-color: #b6d8c2;
}

#toggle-timer-btn.running:hover:not(:disabled) {
  background-color: #fde6bd;
  border-color: #fad776;
}

/* 计时指示器样式 */
.timer-indicator-cell {
  text-align: center;
  vertical-align: middle;
  position: relative;
  width: 20px;
}

.timer-indicator {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #1a73e8;
  display: inline-block;
  margin: 0 auto;
  box-shadow: 0 0 0 rgba(26, 115, 232, 0.6);
  animation: ripple 1.5s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timer-indicator::after,
.timer-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(26, 115, 232, 0.6);
  z-index: -1;
  animation: ripple-echo 1.5s infinite cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timer-indicator::after {
  animation-delay: 0.5s;
}

@keyframes ripple {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.6);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 6px rgba(26, 115, 232, 0.2);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
  }
}

@keyframes ripple-echo {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}

/* 删除确认弹框样式 */
.confirm-modal {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 16px;
  width: 100%;
  max-width: 300px;
  animation: modal-pop 0.25s ease-out;
}

@keyframes modal-pop {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.confirm-header {
  margin-bottom: 12px;
  text-align: left;
}

.confirm-title {
  font-size: 16px;
  font-weight: 600;
  color: #141414;
  margin: 0;
}

.confirm-body {
  margin-bottom: 16px;
  text-align: left;
}

#confirm-message {
  font-size: 13px;
  color: #757575;
  margin: 0;
  line-height: 1.4;
}

.confirm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.confirm-footer .modal-button {
  min-width: 60px;
  height: 30px;
  font-size: 12px;
  font-weight: 500;
  padding: 0 12px;
  border-radius: 15px;
}

.danger-button {
  background-color: #d93025;
  color: white;
}

.danger-button:hover {
  background-color: #c5221f;
}

/* 通知提示样式 */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  max-width: 400px;
  border: 1px solid #e0e0e0;
}

.notification.success {
  border-left: 4px solid #137333;
}

.notification.success::before {
  content: '';
  width: 14px;
  height: 14px;
  background-color: #e6f4ea;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
}

.notification.success::after {
  content: '✓';
  position: absolute;
  left: 20px;
  font-size: 10px;
  color: #137333;
  font-weight: bold;
}

.notification-message {
  color: #141414;
  font-size: 13px;
  font-weight: 500;
  margin: 0;
  padding-left: 8px;
}

.notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes notification-hide {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

/* 任务筛选标签页 */
.task-filter-tabs {
  display: flex;
  gap: 8px;
  margin: 0 10px 10px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.task-filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  color: #5f6368;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-weight: 500;
}

.filter-tab:hover {
  background-color: #f1f3f4;
}

.filter-tab.active {
  background-color: #f1f3f4;
  color: #141414;
  font-weight: 600;
}

.filter-tab[data-filter="completed"].active {
  background-color: #e6f4ea;
  color: #137333;
}

.filter-tab[data-filter="in-progress"].active {
  background-color: #e8f0fe;
  color: #1a73e8;
}

.filter-tab[data-filter="pending"].active {
  background-color: #fef7e0;
  color: #b06000;
}

/* 加载动画 */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 表格加载状态 */
.table-loading {
  position: relative;
}

.table-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.table-loading.active::after {
  opacity: 1;
  pointer-events: all;
}

.table-loading.active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -12px;
  margin-top: -12px;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #141414;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 11;
}

/* 日期输入框样式 */
input[type="date"] {
  font-family: inherit;
  font-size: 14px;
  color: #141414;
  width: 100%;
}

/* 去除日期输入框的默认样式 */
input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.7;
  cursor: pointer;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-clear-button {
  display: none;
}

/* 日期输入框包装器样式 */
.date-input-wrapper {
  position: relative;
  width: 100%;
}

/* 日期占位符样式 */
.date-placeholder {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #757575;
  font-size: 13px;
  pointer-events: none;
  display: none;
  z-index: 1;
}

/* 确保date输入框内的locale设置 */
input[type="date"]:lang(en) {
  font-family: sans-serif !important;
}

/* 操作按钮组 */
.action-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* 小型操作按钮 */
.action-button.small {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: #f2f2f2;
  border: none;
  border-radius: 6px;
  height: 30px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: #141414;
  cursor: pointer;
  transition: background-color 0.2s;
}

.action-button.small:hover {
  background-color: #e0e0e0;
}

.action-button.small svg {
  width: 12px;
  height: 12px;
}

/* 响应式调整 */
@media (max-width: 750px) {
  .control-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .action-buttons {
    margin-top: 5px;
    align-self: flex-end;
    display: flex;
    justify-content: flex-end;
    width: 100%;
  }
}

/* 通知样式扩展 */
.notification.error {
  border-left: 4px solid #d93025;
}

.notification.error::before {
  content: '';
  width: 14px;
  height: 14px;
  background-color: #fdeeee;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
}

.notification.error::after {
  content: '!';
  position: absolute;
  left: 22px;
  font-size: 10px;
  color: #d93025;
  font-weight: bold;
}

/* 任务标签样式 */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.task-tag {
  display: inline-block;
  padding: 3px 8px;
  background-color: #f1f3f4;
  color: #5f6368;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  margin-bottom: 4px;
}

/* 不同颜色的标签 */
.task-tag:nth-child(4n+1) {
  background-color: #e8f0fe;
  color: #1a73e8;
}

.task-tag:nth-child(4n+2) {
  background-color: #fef7e0;
  color: #b06000;
}

.task-tag:nth-child(4n+3) {
  background-color: #e6f4ea;
  color: #137333;
}

/* 任务详情抽屉中标签显示样式 */
#drawer-task-tags .task-tag {
  border: 1px solid rgba(0,0,0,0.1);
}

/* 设置页面样式 */
.settings-section {
  border-bottom: 1px solid #f2f2f2;
  padding: 15px 10px;
  margin-bottom: 10px;
}

.settings-section:last-child {
  border-bottom: none;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px;
  flex-wrap: wrap;
  gap: 15px;
}

.setting-label {
  flex: 1;
  min-width: 200px;
}

.setting-name {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 5px 0;
  color: #141414;
}

.setting-description {
  font-size: 12px;
  color: #757575;
  margin: 0;
}

.setting-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}

/* 标签项样式 */
.tag-item {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-item.selected {
  border-width: 2px;
}

.tag-item span {
  font-weight: 500;
}

/* 标签列表样式 */
.tag-list-item {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid #f2f2f2;
}

.tag-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 10px;
}

.tag-name {
  flex: 1;
  font-size: 14px;
}

.tag-actions {
  display: flex;
  gap: 5px;
}

.tag-edit-btn, .tag-delete-btn {
  background: none;
  border: none;
  padding: 3px;
  cursor: pointer;
  color: #757575;
}

.tag-edit-btn:hover, .tag-delete-btn:hover {
  color: #141414;
}

.tags-list {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 15px;
  border: 1px solid #f2f2f2;
  border-radius: 8px;
}

.add-tag-form {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}

.add-tag-form input[type="text"] {
  flex: 1;
}

.add-tag-form input[type="color"] {
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* 切换开关样式 */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e0e0e0;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #424242;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

/* 账户状态样式 */
#account-status {
  font-size: 14px;
  font-weight: 500;
  margin-right: 10px;
  color: #757575;
}

/* 关于部分样式 */
.about-content {
  padding: 10px;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.app-info {
  margin-bottom: 10px;
}

.app-version {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 5px 0;
}

.app-description {
  font-size: 13px;
  color: #757575;
  margin: 0;
}

.developer-info {
  font-size: 12px;
  color: #757575;
  margin-bottom: 10px;
}

.developer-info p {
  margin: 3px 0;
}

.action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.text-link {
  color: #424242;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.text-link:hover {
  text-decoration: underline;
}

/* 设置操作按钮 */
.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 15px 10px;
  margin-top: 15px;
  border-top: 1px solid #f2f2f2;
}

/* 响应式布局调整 */
@media (max-width: 600px) {
  .setting-item {
    flex-direction: column;
  }
  
  .setting-control {
    width: 100%;
    justify-content: flex-start;
  }
  
  .action-links {
    justify-content: space-between;
  }
}

/* 设置页面按钮统一样式 */
.settings-section .action-button,
.settings-section .button,
.settings-actions .action-button,
.settings-actions .button,
.modal-footer .action-button,
.modal-footer .button {
  height: 30px;
  min-width: 70px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.settings-section .action-button span,
.settings-section .button span,
.settings-actions .action-button span,
.settings-actions .button span,
.modal-footer .action-button span,
.modal-footer .button span {
  margin: 0 auto;
}

/* 主要按钮样式统一 */
.settings-section .button.primary-button,
.settings-actions .button.primary-button,
.modal-footer .button.primary-button {
  background-color: #141414;
  color: white;
  border: none;
}

.settings-section .button.primary-button:hover,
.settings-actions .button.primary-button:hover,
.modal-footer .button.primary-button:hover {
  background-color: #303030;
}

/* 次要按钮样式统一 */
.settings-section .action-button,
.settings-actions .action-button,
.modal-footer .action-button {
  background-color: #f2f2f2;
  color: #141414;
  border: none;
}

.settings-section .action-button:hover,
.settings-actions .action-button:hover,
.modal-footer .action-button:hover {
  background-color: #e0e0e0;
}

/* 危险操作按钮样式统一 */
.settings-section .action-button.danger-action,
.settings-actions .action-button.danger-action,
.modal-footer .action-button.danger-action {
  color: #d93025;
  background-color: #fdeeee;
  border: 1px solid #f4c7c7;
}

.settings-section .action-button.danger-action:hover,
.settings-actions .action-button.danger-action:hover,
.modal-footer .action-button.danger-action:hover {
  background-color: #fdd9d7;
  border-color: #e9a9a6;
}

/* 设置面板样式 */
.setting-panel {
  margin: 5px 0 15px 10px;
  padding: 10px;
  border-left: 2px solid #f2f2f2;
  background-color: #fafafa;
  border-radius: 0 4px 4px 0;
}

.setting-panel .setting-item {
  margin-bottom: 10px;
}

.setting-panel .setting-item:last-child {
  margin-bottom: 0;
}

/* 输入框样式统一 */
.form-input {
  height: 32px;
  padding: 5px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: #bbbbbb;
  outline: none;
}

/* 同步历史记录面板 */
.sync-history-list {
  margin-top: 10px;
  border-radius: 4px;
  overflow: hidden;
}

.sync-history-empty {
  padding: 15px;
  text-align: center;
  color: #757575;
  background-color: #f9f9f9;
  border-radius: 4px;
  font-size: 14px;
}

.sync-history-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  background-color: #f9f9f9;
  transition: background-color 0.2s;
}

.sync-history-item:last-child {
  border-bottom: none;
}

.sync-history-item:hover {
  background-color: #f0f0f0;
}

.sync-history-date {
  font-size: 13px;
  color: #555;
  margin-right: 10px;
}

.sync-history-status {
  text-align: center;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 10px;
}

.sync-history-status.success {
  background-color: #e6f7f0;
  color: #16a464;
}

.sync-history-status.error {
  background-color: #feeaea;
  color: #e53e3e;
}

.sync-history-details {
  font-size: 13px;
  color: #666;
}

@media (min-width: 600px) {
  .sync-history-details {
    flex-basis: auto;
    margin-top: 0;
  }
}

/* 全局按钮小手样式，确保所有按钮悬停时显示 pointer，提升优先级 */
button,
.button,
.action-button,
.icon-button,
.modal-button,
.primary-button,
.secondary-button,
.small-button,
.danger-button,
.modal-close,
.drawer-close,
.filter-tab,
input[type="button"],
input[type="submit"],
input[type="reset"] {
  cursor: pointer !important;
}

/* Notepad style for Quick Notes */
.quick-notes-list-notepad {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}
.quick-notes-list-notepad .quick-note-item {
  background: #fffbe6;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(200,180,80,0.10);
  width: 140px;
  height: 140px;
  padding: 14px 12px 10px 14px;
  font-size: 14px;
  color: #7a5c00;
  border: 1px solid #f7e7b7;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  position: relative;
  word-break: break-word;
  margin-bottom: 0;
}
.quick-notes-list-notepad .quick-note-item:hover {
  box-shadow: 0 4px 16px rgba(200,180,80,0.18);
}
.quick-notes-list-notepad .quick-note-text {
  font-family: sans-serif;
  font-size: 14px;
  color: #7a5c00;
  flex: 1 1 auto;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  white-space: pre-wrap;
  word-break: break-all;
  margin-bottom: 0;
}
.quick-notes-list-notepad .icon-button {
  align-self: flex-end;
  margin-left: 0;
  margin-top: 6px;
}
.quick-notes-list-notepad .quick-note-text[contenteditable="true"] {
  outline: none !important;
  box-shadow: none !important;
  background: #fffbe6;
} 

/* Docs page card style */
.docs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.doc-card {
  background: #fffbe6;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(200,180,80,0.10);
  width: 320px;
  min-height: 80px;
  padding: 18px 20px 14px 20px;
  font-size: 14px;
  color: #7a5c00;
  border: 1px solid #f7e7b7;
  display: flex;
  flex-direction: column;
  gap: 8px;
  word-break: break-word;
  transition: box-shadow 0.2s;
}
.doc-card .doc-title {
  font-weight: bold;
  color: #141414;
  font-size: 15px;
  margin-bottom: 4px;
}
.doc-card .doc-link {
  color: #1a73e8;
  text-decoration: underline;
  word-break: break-all;
  font-size: 13px;
}
.doc-card .doc-meta {
  color: #bfa100;
  font-size: 12px;
  margin-top: 2px;
} 